class Solution
{
public:
    int Add(int num1, int num2)
    {
        while (num1)
        {
            int ret = num1 ^ num2;
            num1 = (num1 & num2) << 1;
            num2 = ret;
        }
        return num2;
    }
};